package com.xiaoshuidi.cloud.module.finance.enums.finance;

/**
 * 交易业务类型
 */
public enum SourceBizTypeEnum {
    RENT_ORDER("账单"),
    ROOM_RESERVE("房源预定"),
    ACCOUNT_RECHARGE("账户充值"),
    ACCOUNT_DEDUCTION("账户扣款"),
    OWNER_ORDER("业主合同"),
    COMPANY_RENT_ORDER("企业账单"),
    SETTLEMENT_BILL("清算单"),
    WITHDRAW("余额提现"),
    RESERVE_WITHDRAW("预定退定"),
    ;

    SourceBizTypeEnum(String desc) {
        this.desc = desc;
    }

    private final String desc;

    public String getDesc() {
        return desc;
    }

    public static String getDesc(String name) {
        for (SourceBizTypeEnum value : values()) {
            if (value.name().equals(name)) {
                return value.getDesc();
            }
        }
        return "未知";
    }
}
